[% PROCESS settings/header.html %]

<script>
function PSSreadOnlyCB() {
   return false;
}
</script>



	[% WRAPPER setting title="PLUGIN_POSTSCAN" desc="" %]
		<img src="/Default/plugins/PostScan/html/images/icon.png" alt="SrvrPowerCtrl" width="56" height="56" align="right" />
		<div class="prefDesc" style="padding-right:30%">[% "PLUGIN_POSTSCAN_DESCRIPTION_LONG" | string %]
		<br><br><a href="/Default/plugins/PostScan/html/help.html" target="_blank">[% "PLUGIN_POSTSCAN_HELP_PAGE" | string %]</a><br><br>
		</div>
		<div class="prefDesc" style="padding-right:30%"><b>[% query_test_results %]&nbsp;&nbsp;</b></div>
	[% END %]<hr />

	[% WRAPPER setting title="PLUGIN_POSTSCAN_GLOBALENABLED" desc="PLUGIN_POSTSCAN_GLOBALENABLED_DISC" %] &nbsp;
		<input id="globalenabled" name="globalenabled" type="checkbox" [% IF globalenabled %] checked ] [% END %] >
	[% END %]

<!-- 
	[% WRAPPER setting title="PLUGIN_POSTSCAN_GLOBALSCANTYPE" desc="PLUGIN_POSTSCAN_GLOBALSCANTYPE_DISC" %] &nbsp;
		<select id="globalallowedscantype" name="globalallowedscantype">
			<option value=0 [% IF globalallowedscantype == 0 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_DISABLED" | string %]</option>
			<option value=1 [% IF globalallowedscantype == 1 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_WIPECACHE" | string %]</option>
			<option value=2 [% IF globalallowedscantype == 2 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_RESCAN" | string %]</option>
			<option value=4 [% IF globalallowedscantype == 2 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_PLAYLISTS" | string %]</option>
			<option value=8 [% IF globalallowedscantype == 8 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_ALL" | string %]</option>
		</select>
	[% END %]
 -->

	[% WRAPPER setting title="PLUGIN_POSTSCAN_QUERIES" desc="PLUGIN_POSTSCAN_QUERIES_LONGDESC" %]
		&nbsp;&nbsp;[% sql_desc %]
	[% END %]
	

	[% WRAPPER settingSection %]

		<table cellspacing=5px>
		[% FOREACH entry IN queries; idx = loop.index %]
			<tr>
				<td style="padding-top:2px;">
					<input id=[% "name" _ idx %] type="text" class="stdedit" name=[% "name" _ idx %] value="[% entry.name %]" size="37">
				</td>
				<td>
					<textarea style="border-style: inset; border-width: 2px; font-size:small" id=[% "query" _ idx %] rows="10" cols="50" wrap="off" name=[% "query" _ idx %]>[% entry.query %]</textarea>
				</td>
				<td style="padding-top:4px;">
					<input name=[% "testquery" _ idx %] type="submit" class="stdclick" value=[% "PLUGIN_POSTSCAN_TESTBUTTON" | string %] id=[% "test" _ idx %]>
					&nbsp;<input name=[% "validated" _ idx %] type="checkbox" onClick="return PSSreadOnlyCB ()" [% IF entry.validated %] checked ] [% END %] >&nbsp;[% "PLUGIN_POSTSCAN_QUERY_VALIDATED" | string %]
					<br><br>[% "PLUGIN_POSTSCAN_QUERY_SCANTYPE" | string %]<br>
					<select name=[% "scantype" _ idx %] id=[% "scantype" _ idx %]>
						<option value=0 [% IF entry.scantype == 0 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_DISABLED" | string %]</option>
						<option value=1 [% IF entry.scantype == 1 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_WIPECACHE" | string %]</option>
						<option value=2 [% IF entry.scantype == 2 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_RESCAN" | string %]</option>
						<option value=4 [% IF entry.scantype == 4 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_PLAYLISTS" | string %]</option>
						<option value=8 [% IF entry.scantype == 8 %]selected[% END %]>[% "PLUGIN_POSTSCAN_SCANTYPE_ALL" | string %]</option>
					</select>
				</td>
			</tr>
		[% END %]
		</table>

	[% END %]


[% PROCESS settings/footer.html %]
